@font-face {
    font-family: 'iconfont';
    src: url('iconfont.eot');
    src: url('iconfont.eot?#iefix') format('embedded-opentype'), url('../iconfont/iconfont.woff2') format('woff2'), url('iconfont.woff') format('woff'), url('iconfont.ttf') format('truetype'), url('iconfont.svg#iconfont') format('svg');
}

main {
    background-color: #F5F5F5;
}

.w {
    width: 1200px;
    margin: 0 auto;
}

* {
    box-sizing: border-box;
}

.header1 {
    height: 56px;
    display: flex;
    align-items: center;
    .title {
        font-weight: 400;
        margin-right: 20px;
        span {
            font-size: 14px;
            color: #585858;
        }
        i {
            font-family: 'iconfont';
            color: #aaa;
        }
        em {
            font-size: 15px;
            color: #000;
        }
    }
    .search {
        span {
            position: relative;
            display: inline-block;
            width: 108px;
            height: 30px;
            line-height: 30px;
            border-radius: 5px;
            background-color: #fff;
            border: 1px solid #aaa;
            font-size: 14px;
            padding: 0 10px;
            margin-right: 10px;
            #del {
                position: absolute;
                top: -5px;
                right: 2px;
                font-size: 20px;
                color: #aaa;
                cursor: pointer;
            }
        }
    }
}

//导航模块
nav {
    margin-bottom: 30px;
    div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #fff;
        min-height: 76px;
        padding: 0 20px;
        &:nth-of-type(-n+3) {
            border-bottom: 1px dashed #eee;
        }
        .left {
            border: 0;
            i {
                font-size: 14px;
                color: #333;
            }
            ul {
                display: flex;
                li {
                    font-size: 14px;
                    color: #333;
                    cursor: pointer;
                    margin-right: 20px;
                    &:nth-of-type(1) {
                        color: #97C722;
                        em {
                            font-family: 'iconfont';
                            color: #97C722;
                        }
                    }
                    &[type="checkbox"] {
                        width: 10px;
                        height: 10px;
                        outline: #333;
                    }
                }
            }
        }
        .right {
            cursor: pointer;
            border: 0;
            span {
                font-size: 14px;
                color: #999;
            }
            i {
                font-family: 'iconfont';
                font-size: 14px;
                color: #999;
            }
        }
    }
}

// .liStyle{
//     color: #97C722;
// }
//商品内容区
.goods_box {
    ul {
        display: flex;
        flex-wrap: wrap;
        li {
            position: relative;
            width: 222px;
            height: 348px;
            border: 1px solid #e8e8e8;
            background-color: #fff;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            margin-right: 22px;
            margin-bottom: 25px;
            &:hover {
                box-shadow: 0px 0px 20px rgba(192, 189, 189, 0.685);
            }
            &:hover .addCarPurchase {
                display: block;
            }
            &:nth-of-type(5n) {
                margin-right: 0;
            }
            a {
                img {
                    width: 176px;
                    height: 176px;
                    margin-bottom: 40px;
                }
            }
            .text1 {
                width: 200px;
                font-size: 16px;
                color: #333;
                margin-bottom: 5px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                text-align: center;
            }
            .text2 {
                font-size: 14px;
                color: #999;
                margin-bottom: 12px;
            }
            p {
                font-size: 24px;
                color: #c81c3a;
                margin-bottom: 20px;
            }
            .addCarPurchase {
                position: absolute;
                left: 10px;
                bottom: 24px;
                width: 220px;
                height: 40px;
                display: none;
                span {
                    display: inline-block;
                    width: 100px;
                    height: 40px;
                    line-height: 40px;
                    text-align: center;
                    float: left;
                }
                .addCar {
                    border: 1px solid #65C722;
                    border-top-left-radius: 20px;
                    border-bottom-left-radius: 20px;
                    background-color: #fff;
                    font-size: 16px;
                    color: #65C722;
                    cursor: pointer;
                }
                .purchase {
                    border: 1px solid #65C722;
                    border-top-right-radius: 20px;
                    border-bottom-right-radius: 20px;
                    background-color: #65C722;
                    font-size: 16px;
                    color: #fff;
                    cursor: pointer;
                }
            }
        }
    }
}